﻿
@using Blazor.Diagrams.Components;
@using Blazor.Diagrams.Components.Renderers;
@using ERP.Workflow.Designer.BlazorUI.Widgets;
@using ERP.Workflow.Designer.BlazorUI.Models;

<div class="colored-node @(Node.Selected ? " selected" : "")">
    <div>N</div>
    @foreach (var port in Node.Ports.Cast<FlowPortModel>())
    {
        <PortRenderer Port="port" >
            @* You can put custom content here*@
        </PortRenderer>
    }
</div>

@code {
    [Parameter]
    public FlowNode Node { get; set; }
}